<?php
$con = mysql_connect("localhost","root","harshi") or die("error connecting");
mysql_select_db("photolib") or die("error selecting database");


function create_user($username,$password,$email,$firstname,$lastname) {
	$query = "insert into user(username,email,password,first_name,last_name,profilepic_id) values('".$username."','".sha1($password)."','".$email."','".$firstname."','".$lastname."','')";
	mysql_query($query) or die("error performing query\n".$query);
}

?>
